const express = require('express')
const router = express.Router()
const uploadCtrl = require('../controller/upload')
const uploadValidator = require('../validator/upload')
router.post('/upload/:type', uploadValidator.addUpload, uploadCtrl.upload, uploadCtrl.uploadType())

module.exports = router
